package com.iot.core.model;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.springframework.cassandra.core.PrimaryKeyType;
import org.springframework.data.cassandra.mapping.PrimaryKeyClass;
import org.springframework.data.cassandra.mapping.PrimaryKeyColumn;

import com.witsight.platform.model.IBaseObject;
/**
 * 
 * @author penght
 *
 */
@PrimaryKeyClass
public class PosKey implements IBaseObject {
	//serialVersionUID
	private static final long serialVersionUID = -1423837945427105282L;

	//productCategory
	@PrimaryKeyColumn(name = " localName", ordinal = 0, type = PrimaryKeyType.PARTITIONED)
    private String  localName;

	//id
	@PrimaryKeyColumn(name = "id", ordinal = 0, type = PrimaryKeyType.CLUSTERED)
	private Integer id;
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getLocalName() {
		return localName;
	}
	public void setLocalName(String localName) {
		this.localName = localName;
	}
	@Override
	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.SIMPLE_STYLE)
				.append(super.toString())
				.append(this.id)
				.append(this.localName)
				.toString();
	}
}
